package com.bw.mvvm_common.mvvm.model;

import com.bw.mvvm_common.entity.BaseEntity;

import java.util.HashMap;

import io.reactivex.Observable;
import okhttp3.RequestBody;

/**
 * @author KK
 * @description:
 * @date :2021/10/12 14:53
 */
public interface IModel {

    //创建RequestBody请求体
    RequestBody createBody(HashMap<String,Object> map);

    //RXJava map操作符转化任务->BaseEntity任务
    Observable<BaseEntity>changeFunc(Observable<? extends BaseEntity> observable);
}
